<?php


namespace App\Rpc;

use App\Rpc\Contract\CalcInterface;
use Hyperf\RpcServer\Annotation\RpcService;

/**
 * @RpcService(name="CalcService",protocol="jsonrpc",server="jsonrpc")
 * Class DataExportService
 * @package App\Rpc
 */
class CalcService implements CalcInterface
{
    public function add($a,$b)
    {
        $data = [$a,$b];
        return show(200,$data);
    }
}